package com.huawei.appmarket.service.settings.card;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.ckt;
import o.der.f;
import o.Logger;

public class GameSettingContentRestrictCard extends SettingContentRestrictCard {
    private Context ˋ;
    private OnClickListener ˏ = new OnClickListener(this) {
        final /* synthetic */ GameSettingContentRestrictCard ˋ;

        {
            this.ˋ = r1;
        }

        public void onClick(View view) {
            this.ˋ.ˋ();
        }
    };

    public GameSettingContentRestrictCard(Context context) {
        super(context);
        this.ˋ = context;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊˋ.setOnClickListener(new ckt(this.ˏ));
    }

    private void ˋ() {
        Intent intent = new Intent();
        intent.setPackage("com.huawei.appmarket");
        intent.setAction("com.huawei.appmarket.intent.action.ACCESS_RESTRICTIONS");
        intent.putExtra("content_restrict_client_name", this.ʼॱ.getString(f.ॱᶥ));
        intent.putExtra("content_restrict_client_package", this.ʼॱ.getPackageName());
        try {
            ((Activity) this.ˋ).startActivityForResult(intent, 3000);
        } catch (ActivityNotFoundException e) {
            Logger.ˋ("GameSettingContentRestrictCard", e.getMessage());
        }
    }
}
